package designPattern.AdapterPattern;

/**
 * @author jiangwz
 * @create 2019/10/30.
 */
public class Phone {

    public void charge(int battery){
        if (battery == 5) {
            System.out.println("5V可以充电");
        }else {
            System.out.println("220V充不了电");
        }
    }
}
